
/*
 * Copyright 2008 Friendster Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace Friendster.Service
{
    /// <summary>
    /// Data Class for representing the users college description.
    /// </summary>
    public sealed  class College
    {
        Hashtable  college = new Hashtable();

        internal College(Hashtable college)
        {
            this.college = college;
        }
        
        /// <summary>
        /// Returns the area of college location.
        /// </summary>
        public string Region
        {
            get
            {
                return (String)college["region"];
            }
        }
        /// <summary>
        /// Returns the college name.
        /// </summary>
        public string Name
        {
            get
            {
                return (String)college["name"];
            }
        }
        /// <summary>
        /// Returns the year when user gets entry in college.
        /// </summary>
        public string YearStart
        {
            get
            {
                return (String)college["year_start"];
            }
        }
        /// <summary>
        /// Returns the country name where the college is located.
        /// </summary>
        public string Country
        {
            get
            {
                return (String)college["country"];
            }
        }
        /// <summary>
        /// User's major subject while reading in specified college.
        /// </summary>
        public string Major
        {
            get
            {
                return (String)college["major"];
            }
        }
        /// <summary>
        /// Returns when did the user ends study in specified college.
        /// </summary>
        public string YearEnd
        {
            get
            {
                return (String)college["year_end"];
            }
        }
        /// <summary>
        /// Returns the city name of college.
        /// </summary>
        public string City
        {
            get
            {
                return (String)college["city"];
            }
        }
        /// <summary>
        /// Returns the name of the degree which the user achived in this college.
        /// </summary>
        public string Degree
        {
            get
            {
                return (String)college["degree"];
            }
        }
        /// <summary>
        /// Name of user's taken courses in the college.
        /// </summary>
        public string Course
        {
            get
            {
                return (String)college["course"];
            }
        }

    }
}
